
import java.math.BigDecimal;




/**
 * 
 * @author Nizar
 * 
 */

public class Id extends Expr {

	private String value;

	public Id(String idTemp) {
		this.value=idTemp;

	}

	public String getValue(){
		return value;
	}

	public BigDecimal evaluate(Env env) {
		return env.get(this);
	}

	public static Id _(String c){
		return new Id(c);
	}

	@Override
	public String toString() {
		return value+"";
	}

	@Override
	public boolean isUnExpr() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isAssignExpr() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isPlusBinExpr() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isMinusBinExpr() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isTimesBinExpr() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isDivideBinExpr() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isNum() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isId() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isSeqExpr() {
		// TODO Auto-generated method stub
		return false;
	}

}






